
import { markRaw } from 'vue'  //不需要vue监听 减少性能损耗

// import Index from '@/views/home/index.vue'
import index from '@/views/home/index.vue'
export const routers = markRaw([
  {
    path: '/',
    name: 'Home',
    component: () => index
  },
  {
    path: '/userConfig',
    name: 'UserConfig',
    component: () => import('@/views/userConfig/index.vue'),
  },
  // {
  //   path: '/interviews/:chattype?',
  //   name: 'Interviews',
  //   component: () => import('@/views/chat/functionTypeChat/interviews.vue'),
  // },
  {
    path: '/programmers/:chattype?',
    name: 'Programmers',
    meta: {
      typeId: ''
    },
    component: () => import('@/views/chat/functionTypeChat/programmers.vue'),
  }, 
  {
    path: '/chat/:chattype?',
    name: 'Chat',
    component: () => import('@/views/chat/chat.vue'),
    meta:{
      typeId:1
    }
  },
  {
    path: '/chatInterView/:chattype?',
    name: 'ChatInterView',
    component: () => import('@/views/chat/chat.vue'),
    meta: {
      typeId: 2
    }
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'not-found',
    component:() => import("@/views/NotFound.vue"),
  }
])